#!/usr/bin/env bash

if [ ! -d _deps ]
then
  echo "Not found directory _deps"
  exit
fi

function rm_dep() {
  name="_deps/$1"
  for suffix in "src" "subbuild" "build"
  do
    if [ -d "${name}-${suffix}" ]
    then
      echo rm -rf "${name}-${suffix}"
      rm -rf "${name}-${suffix}"
    else
      echo "${name}-${suffix}" not exist
    fi
  done
}

rm_dep "gsl"
rm_dep "onnx"
rm_dep "protobuf"
